import React from 'react';
import {useNavigate} from "react-router-dom";

const Login = () => {
    const navigate=useNavigate();
    const fun = () => {

        navigate("/index")
    }
    return (
        <div>
            登陆
            <button onClick={()=>{
                localStorage.setItem("Token","00000000")

fun()

            }}>Login</button>
        </div>
    );
};

export default Login;
